package net.rock.eshop.mapper;

import net.rock.eshop.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {
    List<Category> fetchAllCategories();

    Category fetchCategoryById(int id);

    void addCategory(String name);

    void editCategory(Category category);

    void delCategory(int id);
}
